﻿@model eShop.Web.Mobile.Models.ShipAddressListModel
@{
    Layout = null;
}
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>收货地址-@{@WorkContext.ShopConfig.SiteTitle}触屏版</title>
    @Html.Raw(WorkContext.ShopConfig.SEOKeyword)
    @Html.Raw(WorkContext.ShopConfig.SEODescription)
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link href="@{@WorkContext.CSSCDN}/mobile/themes/default/css/base.css" rel="stylesheet" type="text/css">
    <link href="@{@WorkContext.CSSCDN}/mobile/themes/default/css/buy.css" rel="stylesheet" type="text/css">
    <script src="@{@WorkContext.ScriptCDN}/mobile/scripts/jquery.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/mobile/scripts/common.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/mobile/scripts/ucenter.user.js" type="text/javascript"></script>
</head>

<body>
@Html.Partial("_header")
<script type="text/javascript">
    $("#headerTitle").html("收货地址");
</script>


<div class="allCon">

    <a href="@Url.Action("addshipaddress")" class="addAddress">+添加收货地址</a>

    @foreach (FullShipAddressInfo info in Model.ShipAddressList)
    {
    <div id="shipAddress@{@info.SAId}">
    <div class="bgBlock"></div>
    <div class="adressI">
    <p>@info.Consignee  @info.Mobile</p>
    <p class="f14">@info.ProvinceName @info.CityName @info.CountyName @info.Address</p>
    <div class="chooseAD">
        @if (info.IsDefault == 0)
        {
        @:<input type="checkbox" class="radio" onclick="setDefaultShipAddress(@info.SAId,this)" id="" />默认地址
        }
        else
        {
        @:<input type="checkbox" class="radio" onclick="setDefaultShipAddress(@info.SAId,this)" id="defaultShipAddress" checked="checked" />默认地址
        }
    </div>
    <div class="ADedit"><a href="@Url.Action("editshipaddress", new RouteValueDictionary { { "saId", info.SAId } })" class="ADupdate"><span></span>修改</a>
    <a href="javascript:void(0)" onclick="delShipAddress(@info.SAId)" class="ADdel"><span></span>删除</a></div>
    </div>
    </div>
    }

</div>
@Html.Partial("_footer")
</body>
</html>
